package jwdt.xadmin.system.service.impl;


import jwdt.common.dao.BaseDao;
import jwdt.xadmin.system.bean.TSystem;
import jwdt.xadmin.system.service.SystemManageService;
public class SystemManageServiceImpl implements SystemManageService{
	private BaseDao<TSystem> baseDao;
	
	public void setBaseDao(BaseDao<TSystem> baseDao) {
		this.baseDao = baseDao;
	}
	@Override
	public String doEditact(TSystem obj, int id) throws Exception {
		obj.setId(id+"");
		return baseDao.doUpdateObj(TSystem.class, id, obj);
	};
	@Override
	public TSystem doLoad(int id) throws Exception {
		return baseDao.doLoadObj(TSystem.class, id);
	}
}
